package com.logica.mdm.webfrontend.dao;

import java.util.List;
import java.util.Map;

import com.logica.mdm.webfrontend.dao.beans.PartyResultBean;

/**
 * Interface defining the searchPartyContract
 */
public interface SearchPartyDao {

	/**
	 * Search party by sqlQuery and parameters
	 * @param sqlQuery the query with named parameters
	 * @param sqlParams map containing the parameters
	 * @return list of corresponding results
	 */
	List<PartyResultBean> searchParty(String sqlQuery, Map<String, ?> sqlParams);
	
	/**
	 * Count party by sqlQuery and parameters
	 * @param sqlQuery the query with named parameters
	 * @param sqlParams map containing the parameters
	 * @return count of corresponding results
	 */
	Integer countParty(String sqlQuery, Map<String, ?> sqlParams);
	
}
